<template>
	<view class="content">
    <!-- Logo -->
		<image class="logo" src="/static/logo.png"></image>

    <!-- Push Stream Button -->
    <button class="action-button push-button" @tap="toLive">{{ push }}</button>
		
    <!-- Player Stream Button -->
    <button class="action-button player-button" @tap="toPlay">{{ player }}</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
      push: "Push Stream", // Text for the push stream button
      player: "Player Stream", // Text for the player stream button
    };
		},
		methods: {
    // Navigate to the live streaming page
				toLive(){
					uni.navigateTo({
        url: "/pages/index/live",
      });
				},
						
    // Navigate to the player page
					toPlay(){
						uni.navigateTo({
        url: "/pages/index/player",
      });
    },
  },
};
</script>

<style>
/* Main container */
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
  height: 100vh; /* Full viewport height */
  background-color: #f5f5f5; /* Light gray background */
	}

/* Logo styling */
	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-bottom: 50rpx;
	}

/* Button styling */
.action-button {
  width: 60%; /* Button width */
